@login
Feature: Verify login
Description: Feature Description
Verify user is able to login with valid and invalid credentials
File name: login.feature
Relative path: feature/login.feature
@login
Scenario Outline: Verify user is not able login with following "srk@testroverautomation.com" & "Jawan123"
Given
I navigate to "https://ecommerce-playground.lambdatest.io/"
00:00:02.776
And
I click on My account
00:00:01.326
And
I enter E-Mail Address "srk@testroverautomation.com"
00:00:01.694
And
I enter password "Jawan123"
00:00:00.125
When
I click on submit button
00:00:00.655
Then
I should verify user is not able to login and url contains "route=account/login"
00:00:00.130
@login
Scenario Outline: Verify user is not able login with following "xzy@gmail.com" & "TesMeTest"
Given
I navigate to "https://ecommerce-playground.lambdatest.io/"
00:00:02.764
And
I click on My account
00:00:01.547
And
I enter E-Mail Address "xzy@gmail.com"
00:00:01.126
And
I enter password "TesMeTest"
00:00:00.128
When
I click on submit button
00:00:00.710
Then
I should verify user is not able to login and url contains "route=account/login"
00:00:00.167
@login
Scenario Outline: Verify user is not able login with following "testerrgreat@123.com" & "Tesrxzy123"
Given
I navigate to "https://ecommerce-playground.lambdatest.io/"
00:00:02.957
And
I click on My account
00:00:01.356
And
I enter E-Mail Address "testerrgreat@123.com"
00:00:00.852
And
I enter password "Tesrxzy123"
00:00:00.500
When
I click on submit button
00:00:00.995
Then
I should verify user is not able to login and url contains "route=account/login"
00:00:00.085
@login
Scenario Outline: Verify user is not able login with following "srk_jawan@test.com" & "great123"
Given
I navigate to "https://ecommerce-playground.lambdatest.io/"
00:00:01.698
And
I click on My account
00:00:01.002
And
I enter E-Mail Address "srk_jawan@test.com"
00:00:00.375
And
I enter password "great123"
00:00:00.045
When
I click on submit button
00:00:00.435
Then
I should verify user is not able to login and url contains "route=account/login"
00:00:00.120
@login
Scenario Outline: Verify user is not able login with following "SalmanDabang@gmail.com" & "test 123"
Given
I navigate to "https://ecommerce-playground.lambdatest.io/"
00:00:01.782
And
I click on My account
00:00:00.932
And
I enter E-Mail Address "SalmanDabang@gmail.com"
00:00:00.401
And
I enter password "test 123"
00:00:00.051
When
I click on submit button
00:00:00.418
Then
I should verify user is not able to login and url contains "route=account/login"
00:00:00.133
Given
I navigate to "https://ecommerce-playground.lambdatest.io/"
00:00:02.905
And
I click on My account
00:00:01.569
And
I enter E-Mail Address "pranav@testroverautomation.com"
00:00:00.953
And
I enter password "Test1234"
00:00:00.106
When
I click on submit button
00:00:01.062
Error: expect(page).toHaveURL(expected) failed
Expected pattern: /route=account\/login/
Received string: "https://ecommerce-playground.lambdatest.io/index.php?route=account/account"
Timeout: 5000ms
Call log:
- Expect "toHaveURL" with timeout 5000ms
8 × unexpected value "https://ecommerce-playground.lambdatest.io/index.php?route=account/account"
at ..\tests\UI_Test\steps\login.steps.ts:31
29 |
30 | Then('I should verify url contains {string}', async ({ page }, looged_URL) =) {
) 31 | await expect(page).toHaveURL(new RegExp(looged_URL));
| ^
32 | });
33 |
34 | Then(